﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucOrderDetail.ascx.cs" Inherits="Admin_UserControl_ucOrderDetail" %>
<style type="text/css">
    .style1
    {
        font-weight: bold;
    }
</style>
<div id="center-column">
<div class="style1" style="text-align: left;">
    Xác Nhận Thông Tin Đặt Hàng<br />
</div>
<table cellpadding="2" cellspacing="2" border="0">
    <tr>
        <td>
            Email:
            <asp:Label ID="lb_email" runat="server" Style="font-weight: bold; text-decoration: underline;"> </asp:Label>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Ngày đặt:
            <asp:Label ID="lb_OrderDate" runat="server"> </asp:Label>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <b>Địa chỉ giao hàng</b>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            Tên:
            <asp:Label ID="lb_name" runat="server"></asp:Label>
        </td>
        <td>
            </td>
    </tr>
    <tr>
        <td>
            Số điện thoại:
            <asp:Label ID="lb_phone" runat="server"></asp:Label>
        </td>
        <td>
            </td>
    </tr>
    <tr>
        <td>
            Địa chỉ:
            <asp:Label ID="lb_address" runat="server"></asp:Label>
        </td>
        <td>
            &nbsp;</td>
    </tr>
</table>
<asp:GridView ID="grdShoppingCart" runat="server" AutoGenerateColumns="False" CellPadding="10"
    CssClass="grd" Width="95%">
    <Columns>
        <asp:TemplateField HeaderText="Sản Phẩm">
            <ItemTemplate>
                <asp:Image ID="imgProduct" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/items/" + Eval("ImageURL") + "&width=100&heigh=100&dd=true" %>' /></ItemTemplate>
            <ItemStyle Height="70" VerticalAlign="Middle" HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tên sản phẩm">
            <ItemTemplate>
                <%# Eval("ItemNumber") %><br />
                <%# Eval("ItemName")%></ItemTemplate>
            <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="355px"></ItemStyle>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Giá">
            <ItemTemplate>
                <%# double.Parse(Eval("Price").ToString()).ToString("0,00.##") %>
            </ItemTemplate>
            <ItemStyle Width="60" VerticalAlign="Middle" HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Số lượng">
            <ItemTemplate>
                <%# Eval("Quantity") %>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Thành tiền">
            <ItemTemplate>
                <%# (double.Parse(Eval("Quantity").ToString()) * double.Parse(Eval("Price").ToString())).ToString("0,00.##") %>
            </ItemTemplate>
            <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="Right" />
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle CssClass="grdHeader" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle CssClass="grdAlternateRow" />
    <RowStyle CssClass="grdRow" />
</asp:GridView>
<asp:Panel ID="pnlCartFooter" runat="server" Height="49px" >
    <table border="0" cellpadding="0" cellspacing="0" width="95%">
        <tr>
            <td style="text-align: right;" align="right">
                Phí vận chuyển :
                <asp:Label ID="lblDeliveryFee" runat="server" Text="NA" Font-Bold="true"><%# Eval("DeliveryFee") %></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; padding: 10px 0 10px 0; background-image: none; background-repeat: repeat;
                background-color: #006699;" valign="middle">
                <span style="color: #FFFFFF">Tổng tiền: </span>
                <asp:Label ID="lblTotal" runat="server" CssClass="clsTotalPriceCart" Style="color: #FFFFFF"><%# Eval("Total") %></asp:Label>
                <span style="color: #FFFFFF">&nbsp;(Đã bao gồm thuế)</span>
            </td>
        </tr>
    </table>
</asp:Panel>
</div>